﻿'use strict';

// Declare app level module which depends on filters, and services
angular.module('oplacoSampleApp', ['ui.router', 'angularFileUpload', 'oplacoSampleApp.controllers']);

//declare constants
angular.module('oplacoSampleApp').constant('oplacoSettings', {
    apiServiceBaseUri: SERVICE_BASE,    
});


angular.module('oplacoSampleApp').config(function ($stateProvider) {
    $stateProvider.state('home', { // state for dashboard
        url: '/',
        templateUrl: '/partials/_dashboard.html',
        controller: 'FileUploadCtrl',
        conrollerAs: 'FileUploadController'
    }).state('basicUpload', { // state for dashboard
        url: '/basic-upload',
        templateUrl: '/partials/_basic_upload.html',
        controller: 'FileUploadCtrl',
        conrollerAs: 'FileUploadController'
    }).state('advancedUpload', { // state for showing all movies
        url: '/advanced-upload',
        templateUrl: '/Partials/_advanced-upload.html',
        controller: 'FileUploadCtrl',
        controllerAs: 'FileUploadController'
    });
}).run(function ($state, oplacoSettings) {
    $state.go('home');
    
});